package net.zjitc.service.impl;

import net.zjitc.mapper.StudentMapper;
import net.zjitc.pojo.Student;
import net.zjitc.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/*事务*/
@Transactional
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentMapper mapper;

    @Override
    public List<Student> findAll() {
        return mapper.findAll();
    }
}
